@import '~@styles/common.less';

.collectionWrap {
  .collectionHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: @fff;
    padding: 10px 0 10px 10px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;

    .collectCount {
      display: flex;
      justify-content: space-between;

      .listCount,
      .count {
        height: 100%;
        width: auto;
        padding: 5px 10px;
        background-color: @menu-light;
        margin-right: 15px;
        border-radius: 10px;
        color: @menu-active;
      }
    }

    .addCollect {
      padding: 4px 10px;
    }

    .addIcon {
      font-size: 14px;
      color: @menu-active;
    }
  }

  .collectionItem {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    padding-right: 10px;
    text-align: left;
    background-color: @fff;
    border-bottom: 1px solid @background;

    &:nth-last-child(2) {
      border-bottom-left-radius: 5px;
      border-bottom-right-radius: 5px;
    }

    .desc {
      flex: 1;
      padding: 10px 0 10px 10px;
      cursor: pointer;

      &:hover {
        .actions {
          display: flex;
          justify-content: space-between;

          .edit {
            margin-right: 10px;
          }
        }
      }

      .iconWrapClass {
        color: @font-4;
      }
    }

    .collectionName {
      display: flex;
      justify-content: flex-start;
      font-size: 16px;
      margin-bottom: 8px;
      font-weight: 600;

      .lockIcon {
        margin-left: 5px;
        font-size: 14px;
        color: @font-4;
      }
    }

    .collectDesc {
      margin-bottom: 7px;
      color: @font-4;
    }

    .collectionCount {
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: @font-4;
      height: 26px;
      line-height: 26px;

      .actions {
        display: none;
      }
    }

    &:last-child {
      border-bottom: none;
    }
  }

  .loading {
    padding-top: 10px;
  }

  .skeletonWrap {
    display: flex;
    align-items: center;
    padding: 15px 10px 0 10px;
  }
}

.dark {
  .collectionHeader {
    background-color: @dark-bgc-deep;

    .collectCount {
      .listCount,
      .count {
        background-color: @dark-gray;
        color: #1da57a;
      }
    }
  }

  .collectionItem {
    background-color: @dark-bgc-deep;
    color: @dark-fc;
    border-bottom: 1px solid @dark-bgc;
  }

  .loading {
    color: @dark-fc;
  }
}

@media screen and (max-width: 960px) {
  .collectionWrap {
    .loading {
      padding-bottom: 10px;
    }

    .collectionItem {
      .collectionCount {
        .actions {
          display: flex;
          align-items: center;
          height: 26px;

          .edit {
            display: flex;
            align-items: center;
            margin-right: 10px;
          }
        }
      }
    }
  }
}
